package operation;

import book.BookList;

public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("展示图书");
        for (int i = 0; i < bookList.getBookNum(); i++) {
            System.out.println(bookList.getBooks()[i].toString());
        }
    }
}
